// NOT USE
//
//#ifndef PROJECTZ_NUSER_NCOMMAND_DUNGEON_READY_H_
//#define PROJECTZ_NUSER_NCOMMAND_DUNGEON_READY_H_
//
//#include "../../engine.h"
//
//#include "../../User.h"
//#include "../../Data.h"
//
//namespace ProjectZ { namespace NCommand { namespace NMatching {
//
//class CS_DUNGEON_READY
//{
//public:
//	static void OnExecute(User * pUser, ::Network::Packet * pPacket)
//	{
//		PREPARE_PACKET;
//		Player_Info & player_info = pUser->player_info;
//
//		::Logger::GETLOG()->ToFile(::Logger::DEBUG, "GID \t%d CN_DUNGEON_READY", pUser->GetGID());
//
//		unsigned int gid = 0;
//		pPacket->ParseMsg("%d", &gid);
//
//		player_info.bReadyFight = true;
//
////		User * pFighter = static_cast<User *>(::Dispatcher::GETSESSIONBASE().clsSessionMap[player_info.FighterGID]);
////		if (NULL == pFighter)
////			return;
//
//		::ProjectZ::NGame::CBaseSpace *pSpace = pUser->GetSpace();
//
//		User *pFighter = pSpace->FindPlayer(player_info.FighterGID);
//		if( pFighter == NULL )
//		{
//			::Network::Packet bridge;
//			bridge.MakePacket(CMD_SN_DUNGEON_START);
//
//			pUser->Send(bridge);
//			::Logger::GETLOG()->ToFile(::Logger::DEBUG, "GID \t%d SN_DUNGEON_START", pUser->GetGID());
//
//			pSpace->bSendMapChange = false;
//
//			return;
//		}
//		Player_Info & fighter_player_info = pFighter->player_info;
//
//		::Logger::GETLOG()->ToFile(::Logger::DEBUG, "GID \t%d CN_DUNGEON_READY, ready state %d, %d",
//				pUser->GetGID(), player_info.bReadyFight, fighter_player_info.bReadyFight);
//
//		if (false == fighter_player_info.bReadyFight)
//			return;
//
//		::Network::Packet bridge;
//		bridge.MakePacket(CMD_SN_DUNGEON_START);
//
//		pUser->Send(bridge);
//		::Logger::GETLOG()->ToFile(::Logger::DEBUG, "GID \t%d SN_DUNGEON_START", pUser->GetGID());
//		pFighter->Send(bridge);
//		::Logger::GETLOG()->ToFile(::Logger::DEBUG, "GID \t%d SN_DUNGEON_START", pFighter->GetGID());
//
//		pSpace->bSendMapChange = false;
//	}
//};
//
//} /*NBattle*/ } /*NCommand*/ } /*ProjectZ*/
//
//#endif /* PROJECTZ_NUSER_NCOMMAND_DUNGEON_READY_H_ */
